export const ERROR_CODES = {
  // HTTP 状态码
  BAD_REQUEST: 400,
  UNAUTHORIZED: 401,
  FORBIDDEN: 403,
  NOT_FOUND: 404,
  INTERNAL_SERVER_ERROR: 500,

  // 业务错误码
  INVALID_REQUEST: 'invalid_request',
  NOT_FOUND_ERROR: 'not_found',
};

export const ERROR_MESSAGES = {
  INVALID_REQUEST: '请求参数错误',
  NOT_FOUND: '资源不存在',
  NETWORK_ERROR: '网络连接失败',
  SERVER_ERROR: '服务器内部错误',
};